package bookstore.utils;

public class UserInfo {
    private Long userId;
    private String username;
    private boolean isAdmin;

    public UserInfo(Long userId, String username, boolean admin) {
        this.userId = userId;
        this.username = username;
        this.isAdmin = admin;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public void setAdmin(boolean admin) {
        isAdmin = admin;
    }
}
